Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: parameters binding environment variables #312

Merged
merged 6 commits into from
Apr 12, 2024
Merged

feat: parameters binding environment variables #312

merged 6 commits into from
Apr 12, 2024

Conversation

sigoden
Copy link
Owner

@sigoden sigoden commented Apr 10, 2024

Allow flag/option/arg paramter binding to the environment variable. When there is no value passed from cli, the value is automatically taken from the environment variable.

# @flag --foo $$
# @option --bar $BAR
# @arg baz $$
  • $$: bind environment variable whose name is derived from the corresponding param name
  • $NAME: bind environment variable whose name is NAME

@sigoden sigoden marked this pull request as draft April 10, 2024 10:28
@sigoden sigoden changed the title feat: support param bind-env feat: param binding environment variables Apr 12, 2024
@sigoden sigoden changed the title feat: param binding environment variables feat: parameters binding environment variables Apr 12, 2024
@sigoden sigoden marked this pull request as ready for review April 12, 2024 08:10
@sigoden sigoden merged commit 60278d9 into main Apr 12, 2024
3 checks passed
@sigoden sigoden deleted the feat-bind-env branch April 12, 2024 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant